package com.cs.mapper;

import com.cs.domain.CSCategory;
import com.cs.domain.CSFramePlan;
import com.cs.domain.CSPubAttachments;
import com.cs.domain.vo.CSSupplierVO;
import com.cs.domain.vo.FrameLineVO;
import com.cs.domain.vo.FrameworkPlanVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author：bbdf
 * @Package：com.cs.domain
 * @Project：RuoYi-Cloud
 * @name：CSFramePlanMapper
 * @Date：2024-11-11 10:46
 * @Filename：CSFramePlanMapper
 */

public interface CSFramePlanMapper {

    List<CSFramePlan> getFrameworkPlan(CSFramePlan plan);

    CSFramePlan getFrameworkPlanDetails(String planCode);

    Integer addFrameworkPlan(@Param("frame") CSFramePlan framePlan);

    List<FrameLineVO> getFramePlanByPlanCode(String planCode);

    Integer updateFramePlan(@Param("frame") FrameworkPlanVO framePlan);

    List<CSPubAttachments> getPubAttachementsListByPlanCode(String planCode);
    List<CSCategory> getCSType();

    Integer updateStatusByCode(@Param("plan") CSFramePlan plan);

    List<CSSupplierVO> getSupplier(@Param("hId") Integer gethId,@Param("planCode") String planCode);

    Integer rejectFrameworkPlan(String plaCode);

    Integer deleteFrameworkPlan(String planCode);

    /**
     * 查询框架计划总数量
     * @return
     */
    public int selectFramePlanCount();
}